/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.surveilans.classes;

/**
 *
 * @author Yudi Retanto
 */
public class Unit {
    private int id;
    private String username;
    private String password;
    private String nama;
    private String alamat;
    private int provinsi;
    private int kabupaten;
    private String provinsi_name;
    private String kabupaten_name;

    public Unit() {
        this.id=0;
        this.provinsi=0;
        this.kabupaten=0;
        this.username="";
        this.password="";
        this.nama="";
        this.alamat="";
        this.provinsi_name="";
        this.kabupaten_name="";
    }

    public Unit(int id, String username, String password, String nama, String alamat, int provinsi, int kabupaten, String provinsi_name, String kabupaten_name) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nama = nama;
        this.alamat = alamat;
        this.provinsi = provinsi;
        this.kabupaten = kabupaten;
        this.provinsi_name = provinsi_name;
        this.kabupaten_name = kabupaten_name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getKabupaten() {
        return kabupaten;
    }

    public void setKabupaten(int kabupaten) {
        this.kabupaten = kabupaten;
    }

    public String getKabupaten_name() {
        return kabupaten_name;
    }

    public void setKabupaten_name(String kabupaten_name) {
        this.kabupaten_name = kabupaten_name;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getProvinsi() {
        return provinsi;
    }

    public void setProvinsi(int provinsi) {
        this.provinsi = provinsi;
    }

    public String getAlamat() {
        return alamat;
    }

    public void setAlamat(String alamat) {
        this.alamat = alamat;
    }

    public String getProvinsi_name() {
        return provinsi_name;
    }

    public void setProvinsi_name(String provinsi_name) {
        this.provinsi_name = provinsi_name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
